🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / ui / src / androidMain / kotlin / org / meshtastic / core / ui / util / ClipboardUtils.kt
Displaying Raw • Download
core/ui/src/androidMain/kotlin/org/meshtastic/core/ui/util/ClipboardUtils.kt 01cd54907d62cd90913d3d071b6bc240cae365ef (01cd5490) Text, 1.39 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.ui.util
Tff7b72import T7ee787android.content.ClipData
Tff7b72import T7ee787android.content.ClipDescription
Tff7b72import T7ee787android.os.Build
Tff7b72import T7ee787android.os.PersistableBundle
Tff7b72import T7ee787androidx.compose.ui.platform.ClipEntry
Tff7b72actual Tff7b72fun Td2a8ffcreateClipEntryTb4b4b4(Te6edf3textTb4b4b4: Tffa657StringTb4b4b4, Te6edf3labelTb4b4b4: Tffa657StringTb4b4b4, Te6edf3sensitiveTb4b4b4: Tffa657BooleanTb4b4b4)Tb4b4b4: Te6edf3ClipEntry Tb4b4b4{
Tff7b72val Te6edf3clip Tff7b72= Te6edf3ClipDataTb4b4b4.Te6edf3newPlainTextTb4b4b4(Te6edf3labelTb4b4b4, Te6edf3textTb4b4b4)
T8b949e// EXTRA_IS_SENSITIVE is API 33+; there is no equivalent below that, so the clip is created unmarked there.
Tff7b72if Tb4b4b4(Te6edf3sensitive Tff7b72&Tff7b72& Te6edf3BuildTb4b4b4.Te6edf3VERSIONTb4b4b4.Te6edf3SDK_INT Tff7b72>Tff7b72= Te6edf3BuildTb4b4b4.Te6edf3VERSION_CODESTb4b4b4.Te6edf3TIRAMISUTb4b4b4) Tb4b4b4{
Te6edf3clipTb4b4b4.Te6edf3descriptionTb4b4b4.Te6edf3extras Tff7b72= Te6edf3PersistableBundleTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3apply Tb4b4b4{ Te6edf3putBooleanTb4b4b4(Te6edf3ClipDescriptionTb4b4b4.Te6edf3EXTRA_IS_SENSITIVETb4b4b4, Tff7b72trueTb4b4b4) Tb4b4b4}
Tb4b4b4}
Tff7b72return Te6edf3ClipEntryTb4b4b4(Te6edf3clipTb4b4b4)
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.06s